package com.glory.brepda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.brepda.R;
import com.glory.brepda.entity.RepairFromListEntity;

import java.util.List;

public class ReplaceEqpListAdapter extends BaseQuickAdapter<RepairFromListEntity.RepairData.EQPMATERIALSDTO, BaseViewHolder> {

    public ReplaceEqpListAdapter(@Nullable List<RepairFromListEntity.RepairData.EQPMATERIALSDTO> data) {
        super(R.layout.adapter_replaceeqplist,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, RepairFromListEntity.RepairData.EQPMATERIALSDTO item) {
        helper.setText(R.id.equipmentid,item.getEQUIPMENTID());
        helper.setText(R.id.materialdesc,item.getMATERIALDESC());
        helper.setText(R.id.mlotid,item.getMLOTID());
    }
}
